package cn.zhx.xa.model.dto.user;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "新增/修改用户请求参数")
public class SysUserAddOrUpdateDto {
    @Schema(description = "用户id")
    private Long id;
    /**
     * 用户名
     */
    @Schema(description = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 密码
     */
    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 姓名
     */
    @Schema(description = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    /**
     * 手机
     */
    @Schema(description = "手机")
    @NotBlank(message = "手机不能为空")
    private String phone;

    /**
     * 头像
     */
    @Schema(description = "头像")
    @NotBlank(message = "头像不能为空")
    private String avatar;
}
